Jump to content

- PBXUser

- # PBXUser.UserID

  Followers 0

  VBScript → Lua

  This property returns the current script user's user id. The user id is a SwyxWare internal representation of a user.

      PBXUser.UserID

  This property returns an integer value.

  This property allows read access only.

  Every SwyxWare user has his own unique user id on a SwyxServer. SwyxWare internally uses the user id to identify a user.

  The user id is also used in the PBXScript.PreviousScripts collection to identify a user's script.

  Beside this property there is the PBXUser.Name property which returns the name of the current script user.

  If you need to resolve the name or the user id of any SwyxWare user (not only the current script user) you can use the PBXConfig.GetUserByAddress function.

  If you need to differer SwyxWare user in your own application/script you might consider using the user id instead of the PBXUser.Name. The ids are unique and will not change over the time.

  An example for keeping track of different SwyxWare users is the Persistent Variables project here on Swyx Forum. It uses the user ids to store variables in a database related to a certain user.

  By Tom Wellige

  - May 16, 2022
  Share
  Share
  Followers 0

## Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.